<?php

namespace app\admin\controller;
use think\Controller;
use think\session;
class Index extends Controller
{
    public function  _initialize()
    {
        if (empty(Session('admin'))){
            $this->error('请先登录','login/index',['error'=>'']);
        }
        return view();
    }
    public function index()
    {
        return view();
    }
}
